package com.heima.utils.threadlocal;

import com.heima.model.user.pojos.ApUser;
import com.heima.model.wemedia.pojos.WmUser;

/**
 * app当前线程
 */
public class ApThreadLocal {

    private  static final ThreadLocal<ApUser> AP_USER_THREAD_LOCAL=new ThreadLocal<>();

    public static final void setApUser(ApUser apUser){
        AP_USER_THREAD_LOCAL.set(apUser);
    }

    public static final  ApUser getApUser(){
       return AP_USER_THREAD_LOCAL.get();
    }

    public static final  void removeApUser(){
        AP_USER_THREAD_LOCAL.remove();
    }
}
